package com.tunan.utils;

import java.util.List;

/**
 * 基本下拉框
 * @author Administrator
 */
public class BasicCombo {
	
	/**
	 * 显示值
	 */
	protected String label;	
	
	/**
	 * 实际值
	 */
	protected String value;	
	
	/**
	 * 树形下拉框中的子下拉数据
	 */
	protected  List<BasicCombo> children;	
	
	/**
	 * 主键，用于获取子下拉数据
	 */
	protected String id;
	
	public static BasicCombo getBlankItem(){
		return new BasicCombo("请选择...", "");
	}
	
	/**
	 * 无参构造器
	 */
	public BasicCombo(){}
	
	/**
	 * 带显示值和实际值2个参数的构造器
	 * @param label 显示值
	 * @param value 实际值
	 */
	public BasicCombo(String label, String value){	
		this.label = label;
		this.value = value;
	}
	
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

	public List<BasicCombo> getChildren() {
		return children;
	}

	public void setChildren(List<BasicCombo> children) {
		this.children = children;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
